/**
 * 首页
 */
import request from '@/utils/request'

/*
* 获取系统运行时间
*/

export function getSysRunTime() {
  return request({
    url: '/public/getSysRunTime',
    method: 'Get'
  })
}

export function listBySensorId(query) {
  return request({
    url: '/slope/history/listBySensorId',
    method: 'Get',
    params: query
  })
}

export function controlGlare(data) {
  return request({
    url: '/slope/index/controlGlare',
    method: 'Post',
    data: data
  })
}

export function getGlare() {
  return request({
    url: '/slope/index/getGlare',
    method: 'Get'
  })
}

export function isGlareOnline() {
  return request({
    url: '/slope/index/isGlareOnline',
    method: 'Get'
  })
}

export function getWeather() {
  return request({
    url: '/slope/index/getWeather',
    method: 'Get'
  })
}
